<div class="header">
  <div class="main">
    <a class="logo" href="/">${info.title}</a>
    <div class="nav">
      <a class="nav-this" href="/post/page/recommend/1">
        <i class="iconfont icon-wenda"></i>精选
      </a>
      <a href="/post/tags" target="_blank">
        <i class="iconfont icon-ui"></i>标签
      </a>
    </div>
    
    <div class="nav-user">
      <#if info.loginUser??>
      <a class="avatar" href="${rc.contextPath}/ucenter/index">
        <img src="http://tp4.sinaimg.cn/1345566427/180/5730976522/0">
        <cite>${info.loginUser.name}</cite>
        <i>VIP2</i>
      </a>
      <div class="nav">
        <a href="${rc.contextPath}/ucenter/setting"><i class="iconfont icon-shezhi"></i>设置</a>
        <a href="${rc.contextPath}/user/logout"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
      </div> 
      <#else>
      <a class="unlogin" href="${rc.contextPath}/user/login"><i class="iconfont icon-touxiang"></i></a>
      <span><a href="${rc.contextPath}/user/login">登入</a><a href="${rc.contextPath}/user/register">注册</a></span>
      <p class="out-login">
        <#include "_oauth2.html"/>
      </p> 
      </#if>
    </div>
  </div>
</div>